package com.ql.util;

import java.util.*;

/**
 * Created by Administrator on 2016/12/31.
 */
public class Person {
    private String name;
        private int age;


        public Person(String name, int age) {
            super();
            this.name = name;
            this.age = age;
        }

        public Person() {
            super();
        }

        public String getName() {
            return name;
        }
        public void setName(String name) {
            this.name = name;
        }
        public int getAge() {
            return age;
        }
        public void setAge(int age) {
            this.age = age;
        }
        /*
        @Override
        public boolean equals(Object obj) {
            Person p = (Person)obj;
            if(this.getName().equals(p.getName())&&this.getAge()==p.getAge()){
                return true;
            }
            return false;
        }

        @Override
        public int hashCode() {

            return this.getName().hashCode()+this.getAge()*3;
        }
        */
}
